package com.ruoyi.flexiblescheduling.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.flexiblescheduling.mapper.OrderInfoMapper;
import com.ruoyi.flexiblescheduling.domain.OrderInfo;
import com.ruoyi.flexiblescheduling.service.IOrderInfoService;

/**
 * 订单信息Service业务层处理
 * 
 * @author Shijingming
 * @date 2024-01-27
 */
@Service
public class OrderInfoServiceImpl implements IOrderInfoService 
{
    @Autowired
    private OrderInfoMapper orderInfoMapper;

    /**
     * 查询订单信息
     * 
     * @param ID 订单信息主键
     * @return 订单信息
     */
    @Override
    public OrderInfo selectOrderInfoByID(Long ID)
    {
        return orderInfoMapper.selectOrderInfoByID(ID);
    }

    /**
     * 查询订单信息列表
     * 
     * @param orderInfo 订单信息
     * @return 订单信息
     */
    @Override
    public List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo)
    {
        return orderInfoMapper.selectOrderInfoList(orderInfo);
    }

    /**
     * 新增订单信息
     * 
     * @param orderInfo 订单信息
     * @return 结果
     */
    @Override
    public int insertOrderInfo(OrderInfo orderInfo)
    {
        return orderInfoMapper.insertOrderInfo(orderInfo);
    }

    /**
     * 修改订单信息
     * 
     * @param orderInfo 订单信息
     * @return 结果
     */
    @Override
    public int updateOrderInfo(OrderInfo orderInfo)
    {
        return orderInfoMapper.updateOrderInfo(orderInfo);
    }

    /**
     * 批量删除订单信息
     * 
     * @param IDs 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteOrderInfoByIDs(Long[] IDs)
    {
        return orderInfoMapper.deleteOrderInfoByIDs(IDs);
    }

    /**
     * 删除订单信息信息
     * 
     * @param ID 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteOrderInfoByID(Long ID)
    {
        return orderInfoMapper.deleteOrderInfoByID(ID);
    }
}
